package com.zb.sannuo.common.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zb.sannuo.common.util.PasswordUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AccountVo implements Serializable {

    private static final long serialVersionUID = 1002176559149527589L;

    //主键回填添加的用户表id
    @TableId(type = IdType.AUTO)
    private Integer userId;

    //修改用户表的名字
    private String name;

    //添加和修改用户药店关系表中的药店id
    private Integer storeId;

    //添加和修改用户角色关系表中的角色id
    private Integer roleId;

    //添加和修改的条件
    private String phone;

    //添加的密码
    private String password = PasswordUtil.PASSWORD;
}
